package com.adong.rabbitmq.listener;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageListener;

public class FanoutListener2 implements MessageListener {
    @Override
    public void onMessage(Message message) {
        byte[] body = message.getBody();
        String msg = new String(body);
        System.out.println("springQueue的消息:" + msg);
    }
}
